package com.woniuxy.intellihome.service;

import com.woniuxy.intellihome.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface AddressService extends IService<Address> {
    List<Address> getByUserId(int user_id);

    Address getDefault(int user_id, String isdefault);

    void add(Address address);

    int getAddressNumsByUser_id(int user_id);
}
